<<<<<<< HEAD
=======

>>>>>>> 3091cda7cfb28173653f4c2fd45b3fb6a105178e
const { ccclass, property } = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

<<<<<<< HEAD
    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    start() {

        // 触摸移动事件
        this.node.on(cc.Node.EventType.TOUCH_MOVE, function (t) {
            var offset = t.getDelta();
            this.node.x += offset.x;
            this.node.y += offset.y;
        }.bind(this), this.node);

    }

    // update (dt) {}
=======
  
    // update (dt) {}

>>>>>>> 3091cda7cfb28173653f4c2fd45b3fb6a105178e
}
